package com.ly.pic.model;

import lombok.Data;

@Data
public class Result {
    private boolean success;
    private int code;
    private String msg;
    private Object result;

    public Result(Object result) {
        this.success = true;
        this.code = 0;
        this.msg = "";
        this.result = result;
    }
    public Result(Object result,String msg,int code) {
        this.success = true;
        this.code = 0;
        this.msg = msg;
        this.result = result;
    }

    public Result() {
        this.success = true;
        this.code = 0;
        this.msg = "";
        this.result = result;
    }
}
